import request from '@/utils/request'

//获取船舶违章登记列表
// /yxdd/violationRegister/pageList 这个接口本来就支持czsId,
export function getTableList(data) {
  return request({
    url: `/yxdd/violationRegister/pageList`,
    method: 'post',
    data:data
  })
}

// 船舶违章登记
export function violationRegister(data) {
  return request({
    url: `/yxdd/violationRegister/violationRegister`,
    method: 'post',
    data:data
  })
}
// 船舶违章处理
export function violationDeal(data) {
  return request({
    url: `/yxdd/violationRegister/violationDeal`,
    method: 'post',
    data:data
  })
}
// 获取船舶违章处理详情
export function getShipViolationDetail(id) {
  return request({
    url: `/yxdd/violationRegister/get/${id}`,
    method: 'post'
  })
}
